< previous page page_150 next page >

Page 150
(table continued from previous page)
OperatorDescriptionExample
Modulus (Mod)Divides two numbers and returns just the remainder portion4 Mod 3 = 1
Exponentiation (^)Raises one number to the power of the second number4 ^ 3 = 64

Relational or Comparison Operators
The relational or comparison operators are used to perform Boolean logic. Youll typically use these operators with an If statement, which youll learn in a later chapter. You can see each of these in the Operators.frm form as well (see Figure 7.6).
8160-0150a.gif
Figure 7.6
Examples of relational operators.
Examples Filename: Operators.frm
Table 7.2 is a list of the different relational operators Visual Basic makes available to you. As you can see, you have all the standard operators available in any programming language.

 
< previous page page_150 next page >

If you like this book, buy it!